<script>
	import Vue from 'vue'
	import store from './store/index.js'
	import updateCustomBarInfo from './tuniao-ui/libs/function/updateCustomBarInfo.js'

	// 引入常用方法类
	import tools from './util/util.tools.js';
	import {
		EZSSO,
		FIXED_PARAMS
	} from './util/EngineV2.js'
	export default {
		onLaunch: function() {
			// 获取设备的状态栏信息和自定义顶栏信息
			// store.dispatch('updateCustomBarInfo')
			updateCustomBarInfo().then((res) => {
				store.commit('$tStore', {
					name: 'vuex_status_bar_height',
					value: res.statusBarHeight
				})
				store.commit('$tStore', {
					name: 'vuex_custom_bar_height',
					value: res.customBarHeight
				})
			})
		},
		onShow: function() {
			uni.setStorageSync("wechat_openid","x_stone9999");
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import './tuniao-ui/index.scss';
	@import './tuniao-ui/iconfont.css';

	body {
		background-color: #f1f1f1;
		font-size: 30rpx;
	}
</style>